<template>
   <div class="list clearfix">
                <div
                    class="item"
                    v-for="(item,index) in Djrecommend"
                    :key="index"
                    :class="{ 'clear-padding': index%3 !== 1 }"
                >
                    <div class="img-warpper">
                        <img :src="item.picUrl" alt />
                    </div>
                    <div class="main">{{ item.name }}</div>
                    <div class="gray">{{ item.copywriter }}</div>
                </div >
            </div>
</template>

<script>
export default {
  name: 'DJmore',
  data () {
    return {
      Djrecommend: []
      // hasMore: false
    }
  },
  mounted () {
    this.$api.getreCommend({
      type: this.$route.params.id
    }).then(res => {
      console.log(res, '加载数据')
      this.Djrecommend = res.djRadios
      this.hasMore = res.hasMore
    })
  }
}
</script>

<style scoped>
.list {
    width: 100%;
    height: 617px;
}

.list .item {
    float: left;
    width: 31.33%;
    padding: 0 10px;
    margin-bottom: 10px;
}

.clear-padding {
    padding: 0 !important;
}

.main {
    margin-top: 4px;
    font-size: 12px;
}

.gray {
    font-size: 12px;
    color: #999;
}

.btn-more {
    font-size: 12px;
    text-align: right;
    color: #333;
}
</style>
